package com.yesep.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author quliang
 * @since 2019-08-13
 */
@Data
@TableName("t_data_text")
public class DataText extends Model<DataText> {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "dtId", type = IdType.AUTO)
    private Integer dtId;

    /**
     * 站点ID
     */
    @TableField("siteId")
    private Integer siteId;

    /**
     * 客户端IP
     */
    @TableField("clientIp")
    private String clientIp;

    /**
     * 报文类别  0-下行报文,1-上行报文
     */
    @TableField("dtType")
    private Integer dtType;

    /**
     * 响应报文ID
     */
    @TableField("replyId")
    private Integer replyId;

    /**
     * 服务端IP
     */
    @TableField("serverIp")
    private String serverIp;

    /**
     * 报文状态
     */
    @TableField("dtStatus")
    private String dtStatus;

    /**
     * 数据文本上传时间
     */
    @TableField("dtCreateTime")
    private Date dtCreateTime;

    /**
     * 未解析数据文本
     */
    @TableField("dtContent")
    private String dtContent;

    /**
     * 报文描述
     */
    @TableField("dtDesc")
    private String dtDesc;


    @Override
    protected Serializable pkVal() {
        return this.dtId;
    }

}
